#include <iostream>
#include <algorithm>

uint16_t a[6]={11111,22222,33333,44444,55555,65531};

int main(int argc, char const *argv[])
{
	uint16_t maxValue = *std::max_element(a,a+6);
	uint16_t minValue = *std::min_element(a,a+6);

	printf("maxValue = %d\r\n", maxValue);
	printf("minValue = %d\r\n", minValue);

	return 0;
}
